package org.qydjk.common.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Deng_Junwei on 2018/1/9.
 */

public class PaginationInfo<T> {
    private Integer total;//总记录数
    private List<T> list;//当前页数据

    private PaginationInfo() {
    }

    public PaginationInfo(Integer total, List<T> list) {
        this.total = total;
        if(list == null){
            this.list = new ArrayList<T>();
        }else{
            this.list = list;
        }
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
